package com.itheima.dao;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ：wanghao
 * @date ：Created in 2020/12/1
 * @description ：
 * @version: 1.0
 */
public interface MemberDao {
    public Member findByTelephone(String telephone);
    public void add(Member member);
    public Integer findMemberCountBeforeDate(String m);
    public Integer findCountByDate(String today);
    public Integer findCount();
    public Integer findCountByAfterDate(String thisWeekMonday);
    public List<Map<String, Object>> findCountBySex();
    public List<Member> findAll();
    public Integer findCountByAfterBirthday(String oldDate);
    public Integer findCountByBeforeBirthday(String oldDate);
    public Integer finCountByBetweenBirthday(@Param("oldDate2") String oldDate2, @Param("oldDate") String oldDate);
}
